using UnityEngine;
using System.Collections;

public class LevelLoader : MonoBehaviour 
{
	public string level_to_load;
	
	public void OnTriggerEnter (Collider other)
	{
		if (other.gameObject.layer >= 8 && other.gameObject.layer <= 10)
		{
			Debug.Log ("Load level " + level_to_load);
			Application.LoadLevel (level_to_load);
		}
	}
}